return 0;
nomem:
- if ( (new_modes & SHM_enable) && (d->arch.shadow_ht != NULL) )
+ if ( (new_modes & SHM_enable) )
{
xfree(d->arch.shadow_ht);
d->arch.shadow_ht = NULL;
}
- if ( (new_modes & SHM_log_dirty) && (d->arch.shadow_dirty_bitmap != NULL) )
+ if ( (new_modes & SHM_log_dirty) )
{
xfree(d->arch.shadow_dirty_bitmap);
d->arch.shadow_dirty_bitmap = NULL;
if ( copy_to_user(op->u.getdomaininfo.ctxt, c, sizeof(*c)) )
ret = -EINVAL;
- if ( c != NULL )
- xfree(c);
+ xfree(c);
}
if ( copy_to_user(u_dom0_op, op, sizeof(*op)) )
set_bit(DF_CONSTRUCTED, &p->d_flags);
out:
- if ( c != NULL )
- xfree(c);
+ xfree(c);
return rc;
}
return 0;
out:
- if ( c != NULL )
- xfree(c);
+ xfree(c);
arch_free_exec_domain_struct(d->exec_domain[vcpu]);
d->exec_domain[vcpu] = NULL;
return rc;
no_mem:
if ( t != NULL )
{
- if ( t->active != NULL )
- xfree(t->active);
+ xfree(t->active);
if ( t->maptrack != NULL )
free_xenheap_page((unsigned long)t->maptrack);
xfree(t);
{
struct list_head *ent;
- if ( d->arch.iobmp_mask != NULL )
- {
- xfree(d->arch.iobmp_mask);
- d->arch.iobmp_mask = NULL;
- }
+ xfree(d->arch.iobmp_mask);
+ d->arch.iobmp_mask = NULL;
while ( (ent = d->pcidev_list.next) != &d->pcidev_list )
{